﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    <title>人马君</title>
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav fs-header-small fs-header-yellow">
          <a href="${ctx.host}/signin" class="icon icon-left pull-left"></a>
          <h1 class="title">确认签到</h1>
        </header>
        
        <div class="content">
        
          <div class="list-block media-list no-margin">
            <ul>
              <li class="course">
                <div class=" item-content">
                  <div class="item-media"><img src="${courseSchedule.student.avatar}" style='width: 4rem;'></div>
                  <div class="item-inner">
                    <div class="item-title-row">
                      <div class="item-title">${courseSchedule.student.name}（${courseSchedule.courseRound.site.name}）</div>
                    </div>
                    <div class="item-subtitle">教练：${courseSchedule.coach.name}</div>
                    <div class="item-text">
                      共&nbsp;<span class="color-danger">${courseSchedule.course.hours}</span>&nbsp;节课
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          
          <form action="${ctx.host}/signin" method="POST">
            
            <div class="list-block" style="margin-bottom: 0px;">
              
              <input type="hidden" name="course" value="${courseSchedule.id}">
              
              <c:if test="${couldEdit}">
                <div class="content-block-title">三围数据</div>
                <ul>
                  <li class="item-content">
                    <div class="item-inner">
                      <div class="item-title">胸围</div>
                      <div class="item-after">
                        <input type="text" name="bust" placeholder="请输入胸围">
                      </div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-inner">
                      <div class="item-title">腰围</div>
                      <div class="item-after">
                        <input type="text" name="waist" placeholder="请输入腰围">
                      </div>
                    </div>
                  </li>
                  <li class="item-content">
                    <div class="item-inner">
                      <div class="item-title">臀围</div>
                      <div class="item-after">
                        <input type="text" name="hips" placeholder="请输入臀围">
                      </div>
                    </div>
                  </li>
                </ul>
              </c:if>
              
              <div class="content-block-title">评论</div>
              <ul>
                <li>
                  <div class="item-content">
                    <div class="item-inner">
                      <div class="item-input">
                        <textarea name="comment" rows="4" cols="2" placeholder="请添加评论"></textarea>
                      </div>
                    </div>
                  </div>
                </li>
              </ul>
              
              <div class="content-block">
                <p><a href="javascript:void(0);" data-shift-submit="true" class="button button-fill button-big button-success ft-button">确认签到</a></p>
              </div>
              
            </div>
            
          </form>
          
        </div>
        <!-- End Content -->
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource root="${ctx.resource}/build" type="script" src="js/page/signin/signin-course.js" />
    <script type="text/javascript">
      require(['page/signin/signin-course'], function(page) {
        page.init({
            'couldEdit': '${couldEdit}'
        })
      })
    </script>
    
  </body>
</html>